solving the unknown in permutation